package com.foreknow.elmboot.mapper;

import com.foreknow.elmboot.po.Business;
import com.foreknow.elmboot.po.Food;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface FoodMapper {
    /**
     * 根据商家id查询食物列表
     *
     * @param businessId
     * @return
     */
    @Select("SELECT * from food where businessId=#{businessId}")
    List<Food> getBusinessId(Integer businessId);
    @Select("SELECT * from food where foodId=#{foodId}")
    List<Food> getFoodId(Integer foodId);
}
